#ifndef FRUSTUM_H
#define FRUSTUM_H

#include "Vec4.h"
#include "Plane.h"
#include "Sphere.h"
#include "Matrix.h"

namespace Engine
{
	class Frustum
	{
		private:
			Matrix m_clipMatrix;
			Plane m_planes[6];
		
			int MakeOutCode(const Vec4& pos) const;
		
		public:
			bool Intersects(const Vec3& point) const;
			bool Intersects(const Sphere& s) const;
			void ReCalc();
	};
}

#endif